package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 故障、离线、运行报告的通知记录
 * </p>
 *
 * @author shiying.li
 * @since 2023-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_inform_record")
@ApiModel(value="InformRecord对象", description="故障、离线、运行报告的通知记录")
public class InformRecord extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "父级id ")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "通知开始时间 ")
    @TableField("start_time")
    private Date startTime;

    @ApiModelProperty(value = "通知结束时间")
    @TableField("end_time")
    private Date endTime;

    @ApiModelProperty(value = "触发规则id")
    @TableField("trigger_rule_id")
    private Long triggerRuleId;

    @ApiModelProperty(value = "客户Id")
    @TableField("consumer_id")
    private String consumerId;

    @ApiModelProperty(value = "设备号")
    @TableField("iMEI")
    private String iMEI;

    @ApiModelProperty(value = "当前数据推送的手机号")
    @TableField("push_phone")
    private String pushPhone;

    @ApiModelProperty(value = "状态：0执行中 1发送完成")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "当前任务唯一识别码，手动外呼时为外呼数据主键")
    @TableField("task_identification_code")
    private String taskIdentificationCode;

    @ApiModelProperty(value = "发送类型： 1短信 2微信 3外呼")
    @TableField("send_type")
    private Integer sendType;

    @ApiModelProperty(value = "联系人级别 1-10，数字越大级别越高,默认0")
    @TableField("obj_level")
    private String objLevel;

    @ApiModelProperty(value = "发送结果：0发送成功，1发送失败 2呼叫中（外呼）")
    @TableField("send_result")
    private Integer sendResult;

    @ApiModelProperty(value = "发送内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "备注说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "回执id")
    @TableField("receipt_code")
    private String receiptCode;

    @ApiModelProperty(value = "企业编号")
    @TableField("sp_id")
    private String spId;


}
